import request from '@/utils/request'

// 查询调薪申请列表
export function listHumanSalary(query) {
  return request({
    url: '/oa/humanSalary/list',
    method: 'get',
    params: query
  })
}

// 查询调薪申请详细
export function getHumanSalary(id) {
  return request({
    url: '/oa/humanSalary/' + id,
    method: 'get'
  })
}

// 新增调薪申请
export function addHumanSalary(data) {
  return request({
    url: '/oa/humanSalary',
    method: 'post',
    data: data
  })
}

// 修改调薪申请
export function updateHumanSalary(data) {
  return request({
    url: '/oa/humanSalary',
    method: 'put',
    data: data
  })
}

// 删除调薪申请
export function delHumanSalary(id) {
  return request({
    url: '/oa/humanSalary/' + id,
    method: 'delete'
  })
}
